#cart-wrapper .fvstudio-giftrule-title {
  background: #e5007d !important;
  border-radius: 8px !important;
  margin-top: 20px !important;
  display: flex !important;
}

#cart-wrapper .fvstudio-giftrule-title h4 {
  padding: 10px 20px !important;
  font-size: 14px !important;
  margin: 0 !important;
  font-weight: 700 !important;
  color: #fff !important;
  background: transparent !important;
  border-radius: 8px !important;
}

#cart-wrapper .fvstudio-giftrule-title h4 span {
  font-weight: 300 !important;
}

#cart-wrapper .fvstudio-giftrule-title-unused-actions-description p {
  background: #f7f7f8 !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  color: #555 !important;
}

#cart-wrapper .fvstudio-giftrule-title-unused-actions-description::before {
  background: #f7f7f8 !important;
}

#cart-wrapper table.cart-table.fvstudio-giftrule-cart-table-unused-actions {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  background: transparent;
  margin-top: 8px;
}

#cart-wrapper table.cart-table.fvstudio-giftrule-cart-table-unused-actions tr.fvstudio-giftrule {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

#cart-wrapper table.cart-table.fvstudio-giftrule-cart-table-unused-actions tr.fvstudio-giftrule > td {
  background: transparent;
  border: 0 !important;
  vertical-align: middle;
  padding: 10px 8px;
}

#cart-wrapper table.cart-table.fvstudio-giftrule-cart-table-unused-actions tr.fvstudio-giftrule > td:first-child {
  padding-left: 14px;
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}

#cart-wrapper table.cart-table.fvstudio-giftrule-cart-table-unused-actions tr.fvstudio-giftrule > td:last-child {
  padding-right: 14px;
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

#cart-wrapper table.cart-table.fvstudio-giftrule-cart-table-unused-actions .cart-p-image a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: #f7f7f8;
  border-radius: 12px;
  overflow: hidden;
}

#cart-wrapper table.cart-table.fvstudio-giftrule-cart-table-unused-actions .cart-p-image img {
  max-width: 52px;
  max-height: 52px;
  object-fit: contain;
  width: auto;
  height: auto;
}

#cart-wrapper table.cart-table.fvstudio-giftrule-cart-table-unused-actions .p-name .main-link {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  line-height: 1.3;
}

#cart-wrapper table.cart-table.fvstudio-giftrule-cart-table-unused-actions .p-common-price strong {
  font-size: 14px;
  color: #9a9aa2 !important;
  text-decoration: line-through;
}

.fvstudio-giftrule-cart-table.fixed-free-product .p-total.p-common-price strong {
  color: #9a9aa2 !important;
  text-decoration: line-through;
  font-size: 14px;
}

#cart-wrapper table.cart-table.fvstudio-giftrule-cart-table-unused-actions td.p-total:not(.p-common-price) .price-final {
  font-size: 18px;
  font-weight: 700;
  color: #e5007d;
}

#cart-wrapper table.cart-table.fvstudio-giftrule-cart-table-unused-actions td.p-total:not(.p-common-price) .p-label {
  display: none;
}

#cart-wrapper table.cart-table.fvstudio-giftrule-cart-table-unused-actions .add-to-cart-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: #e5007d !important;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  border: 0 !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.fvstudio-giftrule-cart-table.fixed-free-product tr.removeable.fvstudio-giftrule {
  background: #fff7fb !important;
  border: 1.5px solid #f4c0d1 !important;
  box-shadow: 0 4px 16px rgba(229, 0, 125, 0.08) !important;
}

.fvstudio-giftrule-cart-table.fixed-free-product tr.removeable.fvstudio-giftrule > td {
  background: transparent !important;
}

.fvstudio-giftrule-cart-table.fixed-free-product tr.removeable.fvstudio-giftrule .p-name .main-link {
  color: #72243e !important;
}

.fvstudio-giftrule-cart-table.fixed-free-product tr.removeable.fvstudio-giftrule .p-total .price-final {
  color: #e5007d !important;
}

.fvstudio-giftrule-cart-table.fixed-free-product tr.removeable.fvstudio-giftrule td.p-name::before {
  content: "Speciální cena" !important;
  display: inline-flex !important;
  align-items: center !important;
  margin-bottom: 4px !important;
  padding: 3px 8px !important;
  background: #fbeaf0 !important;
  border: 1px solid #f4c0d1 !important;
  border-left: 3px solid #e5007d !important;
  border-radius: 7px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #72243e !important;
  line-height: 1.3 !important;
}

@media only screen and (max-width: 1024px) {

  #cart-wrapper table.cart-table.fvstudio-giftrule-cart-table-unused-actions {
    display: block !important;
    border-spacing: 0 !important;
  }

  #cart-wrapper table.cart-table.fvstudio-giftrule-cart-table-unused-actions tbody {
    display: block !important;
  }

  #cart-wrapper table.cart-table.fvstudio-giftrule-cart-table-unused-actions tr.fvstudio-giftrule {
    display: grid !important;
    grid-template-columns: 60px 1fr !important;
    grid-template-rows: auto auto auto !important;
    grid-template-areas:
      "img name"
      "img prices"
      "img btn" !important;
    gap: 4px 10px !important;
    padding: 10px 12px !important;
    margin-bottom: 8px !important;
    border-radius: 14px !important;
  }

  #cart-wrapper table.cart-table.fvstudio-giftrule-cart-table-unused-actions tr.fvstudio-giftrule > td {
    display: block !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    min-width: 0 !important;
    width: auto !important;
  }

  #cart-wrapper table.cart-table.fvstudio-giftrule-cart-table-unused-actions .cart-p-image {
    grid-area: img !important;
    align-self: center !important;
  }

  #cart-wrapper table.cart-table.fvstudio-giftrule-cart-table-unused-actions .cart-p-image a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 56px !important;
    height: 56px !important;
    background: #f7f7f8 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }

  #cart-wrapper table.cart-table.fvstudio-giftrule-cart-table-unused-actions .cart-p-image img {
    max-width: 46px !important;
    max-height: 46px !important;
    object-fit: contain !important;
  }

  #cart-wrapper table.cart-table.fvstudio-giftrule-cart-table-unused-actions .p-name {
    grid-area: name !important;
    align-self: center !important;
    min-width: 0 !important;
  }

  #cart-wrapper table.cart-table.fvstudio-giftrule-cart-table-unused-actions .p-name .main-link {
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #111 !important;
    white-space: normal !important;
    line-height: 1.3 !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  #cart-wrapper table.cart-table.fvstudio-giftrule-cart-table-unused-actions .p-common-price {
    grid-area: prices !important;
    display: inline-block !important;
    white-space: nowrap !important;
    min-width: unset !important;
    max-width: unset !important;
  }

  #cart-wrapper table.cart-table.fvstudio-giftrule-cart-table-unused-actions .p-common-price strong {
    font-size: 11px !important;
    color: #9a9aa2 !important;
    text-decoration: line-through !important;
  }

  #cart-wrapper table.cart-table.fvstudio-giftrule-cart-table-unused-actions td.p-total:not(.p-common-price) {
    grid-area: prices !important;
    display: inline-block !important;
    white-space: nowrap !important;
    min-width: unset !important;
    max-width: unset !important;
    margin-left: 6px !important;
  }

  #cart-wrapper table.cart-table.fvstudio-giftrule-cart-table-unused-actions td.p-total:not(.p-common-price) .p-label {
    display: none !important;
  }

  #cart-wrapper table.cart-table.fvstudio-giftrule-cart-table-unused-actions td.p-total:not(.p-common-price) .price-final {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #e5007d !important;
  }

  #cart-wrapper table.cart-table.fvstudio-giftrule-cart-table-unused-actions .p-button {
    grid-area: btn !important;
    align-self: start !important;
  }

  #cart-wrapper table.cart-table.fvstudio-giftrule-cart-table-unused-actions .add-to-cart-button {
    padding: 8px 14px !important;
    font-size: 12px !important;
  }

  .fvstudio-giftrule-cart-table.fixed-free-product {
    display: block !important;
    border-spacing: 0 !important;
  }

  .fvstudio-giftrule-cart-table.fixed-free-product tbody {
    display: block !important;
  }

  .fvstudio-giftrule-cart-table.fixed-free-product tr.removeable.fvstudio-giftrule {
    display: grid !important;
    grid-template-columns: 72px 1fr 100px 80px !important;
    grid-template-rows: auto 25px auto !important;
    grid-template-areas:
      "img   name  name  name"
      "img   avail avail avail"
      "price price qty   total" !important;
    align-items: end !important;
    column-gap: 6px !important;
    row-gap: 0 !important;
    padding: 10px 12px !important;
    margin-bottom: 8px !important;
    border-radius: 18px !important;
    position: relative !important;
  }

  .fvstudio-giftrule-cart-table.fixed-free-product tr.removeable.fvstudio-giftrule > td {
    display: block !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
  }

  .fvstudio-giftrule-cart-table.fixed-free-product .cart-p-image {
    grid-area: img !important;
    align-self: start !important;
  }

  .fvstudio-giftrule-cart-table.fixed-free-product .cart-p-image a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 64px !important;
    height: 64px !important;
    background: #fbeaf0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }

  .fvstudio-giftrule-cart-table.fixed-free-product .cart-p-image img {
    max-width: 52px !important;
    max-height: 52px !important;
    object-fit: contain !important;
  }

  .fvstudio-giftrule-cart-table.fixed-free-product .p-name {
    grid-area: name !important;
    align-self: start !important;
    padding-right: 22px !important;
    text-align: left !important;
  }

  .fvstudio-giftrule-cart-table.fixed-free-product .p-name .main-link {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #72243e !important;
  }

  .fvstudio-giftrule-cart-table.fixed-free-product td.p-name::before {
    font-size: 10px !important;
    padding: 2px 6px !important;
    margin-bottom: 3px !important;
  }

  .fvstudio-giftrule-cart-table.fixed-free-product .p-availability.p-cell {
    grid-area: avail !important;
    align-self: start !important;
    text-align: left !important;
    padding: 0 !important;
    white-space: nowrap !important;
  }

  .fvstudio-giftrule-cart-table.fixed-free-product .p-price.p-cell {
    grid-area: price !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    gap: 3px !important;
    padding-top: 6px !important;
    align-self: center !important;
  }

  .fvstudio-giftrule-cart-table.fixed-free-product .p-price.p-cell .price-final {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #72243e !important;
  }

  .fvstudio-giftrule-cart-table.fixed-free-product .p-price.p-cell .unit-value {
    font-size: 10px !important;
    color: #9a9aa2 !important;
  }

  .fvstudio-giftrule-cart-table.fixed-free-product .p-quantity.p-cell {
    grid-area: qty !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-top: 6px !important;
    align-self: center !important;
  }

  .fvstudio-giftrule-cart-table.fixed-free-product .p-total {
    grid-area: total !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding-top: 8px !important;
    position: static !important;
    align-self: center !important;
  }

  .fvstudio-giftrule-cart-table.fixed-free-product .p-total .p-label {
    display: none !important;
  }

  .fvstudio-giftrule-cart-table.fixed-free-product .p-total .price-final {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #e5007d !important;
  }

  .fvstudio-giftrule-cart-table.fixed-free-product .p-discount.p-cell {
    display: none !important;
  }

  .fvstudio-giftrule-cart-table.fixed-free-product .p-total form {
    display: block !important;
  }

  .fvstudio-giftrule-cart-table.fixed-free-product .remove-item {
    position: absolute !important;
    right: 8px !important;
    top: 8px !important;
    bottom: auto !important;
    transform: none !important;
    width: 22px !important;
    height: 22px !important;
    opacity: 0.35 !important;
    background: transparent !important;
    border: 0 !important;
    cursor: pointer !important;
  }

  .fvstudio-giftrule-cart-table.fixed-free-product .remove-item::before,
  .fvstudio-giftrule-cart-table.fixed-free-product .remove-item::after {
    content: "" !important;
    position: absolute !important;
    top: 10px !important;
    left: 4px !important;
    width: 13px !important;
    height: 2px !important;
    background: #c77a9a !important;
    border-radius: 2px !important;
  }

  .fvstudio-giftrule-cart-table.fixed-free-product .remove-item::before {
    transform: rotate(45deg) !important;
  }

  .fvstudio-giftrule-cart-table.fixed-free-product .remove-item::after {
    transform: rotate(-45deg) !important;
  }
}
